package org.lq.ht.view.V_OrderSheet;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import com.eltima.components.ui.DatePicker;

import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.LayoutStyle.ComponentPlacement;

public class V_Order extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTable table;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					V_Order frame = new V_Order();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public V_Order() {
		setResizable(false);
		setTitle("订单展示");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 564, 473);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		
		JLabel lblNewLabel = new JLabel("商 品：");
		lblNewLabel.setBounds(24, 32, 42, 15);
		
		textField = new JTextField();
		textField.setBounds(76, 29, 66, 21);
		textField.setColumns(10);
		
		JButton btnNewButton = new JButton("New button");
		btnNewButton.setBounds(142, 28, 24, 23);
		
		JLabel lblNewLabel_1 = new JLabel("类 别：");
		lblNewLabel_1.setBounds(24, 70, 42, 15);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(76, 66, 90, 23);
		
		JLabel lblNewLabel_2 = new JLabel("进 价：");
		lblNewLabel_2.setBounds(24, 110, 54, 15);
		
		textField_1 = new JTextField();
		textField_1.setBounds(76, 107, 90, 21);
		textField_1.setColumns(10);
		
		JLabel lblNewLabel_3 = new JLabel("数 量：");
		lblNewLabel_3.setBounds(183, 70, 42, 15);
		
		textField_2 = new JTextField();
		textField_2.setBounds(238, 67, 90, 21);
		textField_2.setColumns(10);
		
		JLabel lblNewLabel_4 = new JLabel("供货商：");
		lblNewLabel_4.setBounds(386, 32, 54, 15);
		
		JComboBox comboBox_1 = new JComboBox();
		comboBox_1.setBounds(445, 28, 84, 23);
		
		DatePicker dp = new DatePicker();
		dp.setBounds(241, 32, 142, 21);
		
		JLabel lblNewLabel_5 = new JLabel("进货时间：");
		lblNewLabel_5.setBounds(176, 32, 68, 15);
		
		JLabel lblNewLabel_6 = new JLabel("进价总金额：");
		lblNewLabel_6.setBounds(353, 70, 77, 15);
		
		textField_3 = new JTextField();
		textField_3.setBounds(445, 67, 84, 21);
		textField_3.setColumns(10);
		
		JLabel lblNewLabel_7 = new JLabel("备注：");
		lblNewLabel_7.setBounds(203, 110, 54, 15);
		
		textField_4 = new JTextField();
		textField_4.setBounds(248, 107, 182, 21);
		textField_4.setColumns(10);
		
		JPanel panel = new JPanel();
		panel.setBounds(10, 153, 535, 271);
		
		JScrollPane scrollPane = new JScrollPane();
		
		table = new JTable();
		table.setModel(new DefaultTableModel(
			new Object[][] {
				{null, null, null, null, null, null, null, null},
			},
			new String[] {
				"\u8BA2\u5355\u53F7", "\u5546\u54C1", "\u5546\u54C1\u7C7B\u578B", "\u6570\u91CF", "\u8FDB\u4EF7", "\u8FDB\u8D27\u65F6\u95F4", "\u4F9B\u8D27\u5546", "\u5907\u6CE8"
			}
		));
		scrollPane.setViewportView(table);
		GroupLayout gl_panel = new GroupLayout(panel);
		gl_panel.setHorizontalGroup(
			gl_panel.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_panel.createSequentialGroup()
					.addComponent(scrollPane, GroupLayout.PREFERRED_SIZE, 530, GroupLayout.PREFERRED_SIZE)
					.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
		);
		gl_panel.setVerticalGroup(
			gl_panel.createParallelGroup(Alignment.LEADING)
				.addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 271, Short.MAX_VALUE)
		);
		panel.setLayout(gl_panel);
		contentPane.setLayout(null);
		contentPane.add(lblNewLabel);
		contentPane.add(textField);
		contentPane.add(btnNewButton);
		contentPane.add(lblNewLabel_1);
		contentPane.add(comboBox);
		contentPane.add(lblNewLabel_2);
		contentPane.add(textField_1);
		contentPane.add(lblNewLabel_3);
		contentPane.add(textField_2);
		contentPane.add(lblNewLabel_4);
		contentPane.add(comboBox_1);
		contentPane.add(dp);
		contentPane.add(lblNewLabel_5);
		contentPane.add(lblNewLabel_6);
		contentPane.add(textField_3);
		contentPane.add(lblNewLabel_7);
		contentPane.add(textField_4);
		contentPane.add(panel);
	}
}
